package com.dongdongqiang.daogenerator.handler;

import com.dongdongqiang.daogenerator.exception.DDQException;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

/**
 * 更新
 * Created by ZZB on 2017/9/24.
 */
public interface IUpdateHandler {
    int update(Object o, Connection connection) throws DDQException;
    int[] updateList(List<?> objects,Connection connection) throws DDQException;

    int updateField(Object pk,Class<?> tClass, String updateField , Object value, Connection connection ) throws DDQException;
    int updateListField(List<?> pk,Class<?> tClass, String updateField , Object value, Connection connection ) throws DDQException;
}
